php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#222768 - 10/26/02 08:10 PM Re: [6.x] Who's Online PM Link 1.0 [Re: tubedogg_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I took a quick look... and have this working on showflat.php..... I didn't look at showthreaded yet..... because there are some problems that I don't know how to work around.<br /><br />While I kinda got it..... the whole thing is probably just out of my reach... maybe with enough hacking around it could be done. It would certainly take me alot more free time than I've got. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />What this does.... (in showflat view) is only show the replies to the person who started the topic... everyone else only sees the main post:<br /><br />The problems that I noticed off the top of my head:<br /> - the replies would show up in a search<br /> - the replies would show up when someone "showed all posts by this user" <br /> - when the user makes a reply...they can "view their post" then see the whole thread<br /><br /><pre><font class="small">code:</font><hr><br />##<br />## Open showflat.php<br />##<br /><br />#<br /># Find this:<br />#<br /><br />// -----------------------------------------<br />// Grab the main post number for this thread<br /> $Number = addslashes($Number);<br /> $query = "<br /> SELECT B_Main<br /> FROM {$config['tbprefix']}Posts<br /> WHERE B_Number = '$Number'<br /> AND B_Board = '$Board'<br /> ";<br /> $sth = $dbh -> do_query($query);<br /> list ($current) = $dbh -> fetch_array($sth);<br /> $dbh -> finish_sth($sth);<br /><br />#<br /># Change to:<br />#<br /><br />// -----------------------------------------<br />// Grab the main post number for this thread<br /> $Number = addslashes($Number);<br /> $query = "<br /> SELECT B_Main, B_Username<br /> FROM {$config['tbprefix']}Posts<br /> WHERE B_Number = '$Number'<br /> AND B_Board = '$Board'<br /> ";<br /> $sth = $dbh -> do_query($query);<br /> list ($current,$MainUsername) = $dbh -> fetch_array($sth);<br /> $dbh -> finish_sth($sth);<br /><br /><br />#<br /># Find this:<br />#<br /><br />// -----------------------------------------------------------------<br />// We need to know how many posts of this thread to display per page<br /> if ($fpart <= 1) {<br /> $Totalgrab = $Totaldisplay;<br /> }<br /> else {<br /> $Startat = $Totaldisplay * ($fpart - 1);<br /> $Totalgrab = "$Startat, $Totaldisplay";<br /> }<br /> $Limit = "LIMIT $Totalgrab";<br /> if ($fpart == "all") {<br /> $Limit = "";<br /> }<br /><br /> $threadnumber = $Number;<br /><br /><br />#<br /># Change to this:<br />#<br /><br />// -----------------------------------------------------------------<br />// We need to know how many posts of this thread to display per page<br /> if ($user['U_Username'] == $MainUsername) {<br /> if ($fpart <= 1) {<br /> $Totalgrab = $Totaldisplay;<br /> }<br /> else {<br /> $Startat = $Totaldisplay * ($fpart - 1);<br /> $Totalgrab = "$Startat, $Totaldisplay";<br /> }<br /> $Limit = "LIMIT $Totalgrab";<br /> if ($fpart == "all") {<br /> $Limit = "";<br /> }<br /> }<br /> else {<br /> $Limit = "LIMIT 1";<br /> }<br /> <br /> $threadnumber = $Number;<br /></pre><hr><br /><br />Since you need this in a bunch of boards... you would need to add a lot of "if the board is xxxxxxx" then have it check if the $user['U_Username'] was equal to the B_Username of the main post.<br />There would be lots of scripts you'd have to work this into.<br /><br />But in theory it's probably possible. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#222769 - 10/27/02 05:53 PM Re: [6.x] Who's Online PM Link 1.0 [Re: Daine]
Gregori Offline
Member

Registered: 09/14/02
Posts: 157
Oki... I give up! <img src="/forum/images/graemlins/smirk.gif" alt="" /><br /><br />Guess IŽll have to find an existing system and integrate the login with UBBT.

Top
#222770 - 10/27/02 07:15 PM Re: [6.x] Who's Online PM Link 1.0 [Re: tubedogg_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
With 6.2 it will be user number based. <br /><br />So then if you did the private message idea... you wouldn't see the username in the URL... just the number, which would still be anonymous.<br /><br />You could easily remove the option to "keep a copy of this message" from the PM templates... which is another identity give away.<br /><br />What's this for again? Like a personals response thing?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#222771 - 10/28/02 04:19 AM Re: [6.x] Who's Online PM Link 1.0 [Re: Daine]
Gregori Offline
Member

Registered: 09/14/02
Posts: 157
Oki... But how far away is 6.2?<br /><br />Yes, it for personals. I want to give my registered user an anonymous personal advertisment area. "Man seeks Woman", Woman seeks Alien", "Alien seeks MiB". <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#222772 - 10/28/02 08:35 AM Re: [6.x] Who's Online PM Link 1.0 [Re: tubedogg_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
No official word yet as to a time frame.<br /><br />I know it's still in development and hasn't even entered beta yet... so I wouldn't wait on it. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#222773 - 10/30/02 03:53 AM Re: [6.x] Who's Online PM Link 1.0 [Re: Daine]
Gregori Offline
Member

Registered: 09/14/02
Posts: 157
Ok <img src="/forum/images/graemlins/frown.gif" alt="" /> <br /><br />IŽll start looking for an allternative system asap. Thank you for helping! <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#222774 - 12/16/02 03:38 PM Re: [6.x] Who's Online PM Link 1.0 [Re: tubedogg_dup1]
cstaber Offline
Journeyman

Registered: 08/17/02
Posts: 124
Loc: Tampa, FL
Got this working with 6.2 BR2...It's really easy (hey, I figured it out...musta been easy;) )<br /><br />All you have to do is in this:<br /><br /> <pre><font class="small">code:</font><hr> <br />//------------------------------------------------------<br /> // Set up the link to send the user a Private Message - by JoshPet<br /> if ($config['private']) {<br /> $encoded = rawurlencode($Username);<br /> $privmessage = "<a href=\"{$config['phpurl']}/sendprivate.php?Cat=$Cat&amp;User=$encoded\"><img src=\"{$config['images']}/sendprivate.gif\" alt=\"{$ubbt_lang['PRIV_HEAD']}\" border=\"0\"></a>"; <br /> }<br /><br /> </pre><hr> <br /><br />Change <br /> <pre><font class="small">code:</font><hr> $encoded = rawurlencode($Username);<br /> </pre><hr> <br />to<br /> <pre><font class="small">code:</font><hr> $encoded = rawurlencode($Uid);<br /> </pre><hr> <br />Works just fine for me now <img src="/forum/images/graemlins/wink.gif" alt="" />

Top
#222775 - 03/02/03 12:41 AM Re: [6.x] Who's Online PM Link 1.0 [Re: tubedogg_dup1]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
This one gonna work on 6.2.2? Just trying to keep Josh busy <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#222776 - 03/02/03 04:29 AM Re: [6.x] Who's Online PM Link 1.0 [Re: Kelly]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Yes, it'll work if you apply the change cstaber posted above.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#222777 - 12/27/03 07:08 AM Re: [6.x] Who's Online PM Link 1.0 [Re: -Fusion-]
Gregori Offline
Member

Registered: 09/14/02
Posts: 157
Will this work with 6.4?

Top
#222778 - 12/28/03 04:16 PM Re: [6.x] Who's Online PM Link 1.0 [Re: tubedogg_dup1]
ScottCargill Offline
Journeyman

Registered: 02/01/01
Posts: 144
Loc: Bakersfield, Ca.
[]Gregori said:<br />Will this work with 6.4? [/]<br /><br />Yes.<br /><br />If I remember right, you need to change the following in the instructions.<br /><br />
Code:
 ABOVE it, add this:<br /><br />	//------------------------------------------------------<br />	// Set up the link to send the user a Private Message -  by JoshPet<br />      if ($config['private']) {<br />         $encoded = rawurlencode($Username);<br />         $privmessage = "&lt;a href=\"{$config['phpurl']}/sendprivate.php?Cat=$Cat&amp;amp;User=$encoded\"&gt;&lt;img src=\"{$config['images']}/sendprivate.gif\" alt=\"{$ubbt_lang['PRIV_HEAD']}\" border=\"0\"&gt;&lt;/a&gt;"; <br />      } 
<br /><br />change the encoded $Username to $EUsername and it'll work.
_________________________
Scott Cargill -WebMaster
East Hills Kung Fu San Soo

Top
Page 2 of 2 < 1 2



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks